const clickme = document.getElementById("clickme");
clickme.onclick = () => {
  alert("点我了:" + myApi.version);
};

const writeBtn = document.getElementById("writeBtn");
const content = document.getElementById("content");

writeBtn.onclick = () => {
  //   alert(content.value);
  myApi.saveFile(content.value);
};

const readBtn = document.getElementById("readBtn");
readBtn.onclick = async () => {
  const t = await myApi.readFile();
  alert(t);
};

myApi.getMessage((_, v) => {
  console.log("@@@", v);
});
